package com.ywl.task.mapper;

import com.ywl.task.pojo.Project;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @Author 严伟伦
 * @Company 无
 * @Description
 * @Date: 2024/9/5 19:08
 */
public interface ProjectMapper {


    //分页查询project数据,分页使用分页插件实现，所以没有分页参数
    List<Project> selectByPage(Project project);

    List<Project> selectDeletes(Project project);

    //新增

    int addProject(Project project);

    //
    Project selectProjectById (String projectId);

    //行编辑
    int updateProjectById (Project project);


    //行删除
    int deleteProject(String projectId);

    //归档
    int updateFile(String projectId);


    //恢复
    int updateFileRestore(String projectId);

    //批量操作
    int updateProjectsStatus(@Param("projectIds") String [] projectIds , @Param("status") Integer status);


    //任务数量
    Integer countTasks(String projectId);

}
